package cn.gson.boot.model.pojos;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Objects;

/*问答*/

@Entity
public class Wenda {
    private int wdId;//问答id
    private String jieda;//解答
    private String tishi;//提示
    private String zuozhe;//作者
    private String wenti;//问题
    private Timestamp wdTime;//问答创建日期
    private String wdZhuangtai;//问答状态

    private Integer wdYs;

    @Basic
    @Column(name = "wd_ys")
    public Integer getWdYs() {
        return wdYs;
    }

    public void setWdYs(Integer wdYs) {
        this.wdYs = wdYs;
    }

    @Id
    @Column(name = "wd_id", nullable = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY,generator = "seq")
    public int getWdId() {
        return wdId;
    }

    public void setWdId(int wdId) {
        this.wdId = wdId;
    }

    @Basic
    @Column(name = "jieda", nullable = true, length = 200)
    public String getJieda() {
        return jieda;
    }

    public void setJieda(String jieda) {
        this.jieda = jieda;
    }

    @Basic
    @Column(name = "tishi", nullable = true, length = 200)
    public String getTishi() {
        return tishi;
    }

    public void setTishi(String tishi) {
        this.tishi = tishi;
    }

    @Basic
    @Column(name = "zuozhe", nullable = true, length = 200)
    public String getZuozhe() {
        return zuozhe;
    }

    public void setZuozhe(String zuozhe) {
        this.zuozhe = zuozhe;
    }

    @Basic
    @Column(name = "wenti", nullable = true, length = 200)
    public String getWenti() {
        return wenti;
    }

    public void setWenti(String wenti) {
        this.wenti = wenti;
    }

    @Basic
    @Column(name = "wd_time", nullable = false)
    public Timestamp getWdTime() {
        return wdTime;
    }

    public void setWdTime(Timestamp wdTime) {
        this.wdTime = wdTime;
    }

    @Basic
    @Column(name = "wd_zhuangtai", nullable = true, length = 200)
    public String getWdZhuangtai() {
        return wdZhuangtai;
    }

    public void setWdZhuangtai(String wdZhuangtai) {
        this.wdZhuangtai = wdZhuangtai;
    }

}
